﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MauTK_Mang1
{
    class Program
    {
        static void Main(string[] args)
        {
            
            Student st = new Student("0912241","Pham Anh Kiet",9.0f);
            Student st1 = new Student("0912230", "Ngo Anh Khoi", 4.0f);
            Student st2 = new Student("0912242","Nguyen Nhat King",6.0f);
            MyArray<Student> students = new MyArray<Student>(new Student[]{st,st1,st2});

            System.Console.WriteLine("Sap xep theo mssv tang: \n");
            students.sort(new BubbleSort<Student>());
            System.Console.WriteLine(students);

            System.Console.WriteLine("Sap xep theo dtb giam: \n");
            students.sort(new BubbleSort<Student>(), new StudentDtbDesComparor());
            System.Console.WriteLine(students);
        }
        static void asd(IComparable cm) { }
    }
}
